#!python
import sys

fin = open(sys.argv[1], 'r')
fout = open(sys.argv[2], 'w')

for l in fin:
    if l.startswith('\\newlabel'):
        fout.write(l)

fin.close()
fout.close()

